import Vue from 'vue';
import VueRouter from 'vue-router'; 

Vue.use(VueRouter);

import BathroomProject from '../components/BathroomProject.vue';
import KitchenProject from '../components/KitchenProject.vue';
import WindowProject from '../components/WindowProject.vue';
import avBathroom from '../components/avBathroom.vue';
import solar from '../components/solar.vue';1

// 导入重定向组件，它的文件名和组件名就是 SolarQuoteLandingPage
import SolarQuoteLandingPage from '../components/SolarQuoteLandingPage.vue'; 
import SolarQuotePage from '../components/SolarQuotePage.vue';  
import BathroomLandingPage from '../components/BathroomLandingPage.vue'; 
import cocaPage from '../components/cocaPage.vue'; 
import walmart from '../components/walmart.vue'; 
import insurance from '../components/insurance.vue'; 
import ALDI from '../components/ALDI.vue'; 
import nutella from '../components/nutella.vue'; 
import Amazon from '../components/Amazon.vue'; 
import Biedronki from '../components/Biedronki.vue'; 
import MyDailySurge from '../components/MyDailySurge.vue'; 
import iphone from '../components/iphone.vue'; 
import walmarttime from '../components/walmarttime.vue'; 
import deAmazon from '../components/deAmazon.vue'; 
import popmart from '../components/popmart.vue'; 
import newbike from '../components/newbike.vue'; 
import roof from '../components/Homeowners.vue'; 
import Gutter from '../components/sewer.vue'; 

import Walkin from '../components/Walkin.vue'; 
import HVAC from '../components/HVAC.vue'; 
import MyAutoLoan from '../components/MyAutoLoan.vue'; 
import Trends from '../components/Trends.vue'; 
import Target from '../components/Target.vue'; 
import petinsurance from '../components/petinsurance.vue'; 
import Transplant from '../components/Transplant.vue'; 
import property from '../components/property.vue'; 
























const routes = [
  {
    path: '/',
    redirect: '/bathroom' 
  },
    {
    path: '/Transplant',
    name: 'Transplant',
    component: Transplant
  },
   {
    path: '/property',
    name: 'property',
    component: property
  },
   {
    path: '/popmart',
    name: 'popmart',
    component: popmart
  },
  {
    path: '/petinsurance',
    name: 'petinsurance',
    component: petinsurance
  },
      {
    path: '/Target',
    name: 'Target',
    component: Target
  },
     {
    path: '/Trends',
    name: 'Trends',
    component: Trends
  },
   {
    path: '/MyAutoLoan',
    name: 'MyAutoLoan',
    component: MyAutoLoan
  },
    {
    path: '/HVAC',
    name: 'HVAC',
    component: HVAC
  },
     {
    path: '/Walkin',
    name: 'Walkin',
    component: Walkin
  },
     {
    path: '/Gutter',
    name: 'Gutter',
    component: Gutter
  },
  {
    path: '/roof',
    name: 'roof',
    component: roof
  },
  {
    path: '/newbike',
    name: 'newbike',
    component: newbike
  },
  {
    path: '/deAmazon',
    name: 'deAmazon',
    component: deAmazon
  },
    {
    path: '/bathroom',
    name: 'Bathroom',
    component: BathroomProject
  },
   {
    path: '/walmarttime',
    name: 'walmarttime',
    component: walmarttime
  },
    {
    path: '/iphone',
    name: 'iphone',
    component: iphone
  },
    {
    path: '/MyDailySurge',
    name: 'MyDailySurge',
    component: MyDailySurge
  },
    {
    path: '/Biedronki',
    name: 'Biedronki',
    component: Biedronki
  },
   {
    path: '/Amazon',
    name: 'Amazon',
    component: Amazon
  },
    {
    path: '/nutella',
    name: 'nutella',
    component: nutella
  },
    {
    path: '/ALDI',
    name: 'ALDI',
    component: ALDI
  },
    {
    path: '/insurance',
    name: 'insurance',
    component: insurance
  },
   {
    path: '/cocaPage',
    name: 'cocaPage',
    component: cocaPage
  },
    {
    path: '/walmart',
    name: 'walmart',
    component: walmart
  },
    {
    path: '/SolarQuotePage',
    name: 'SolarQuotePage',
    component: SolarQuotePage
  },

    {
    path: '/BathroomLandingPage',
    name: 'BathroomLandingPage',
    component: BathroomLandingPage
  },
  {

  //   // 这个路由指向我们的重定向组件
    path: '/SolarQuoteLandingPage',
    name: 'SolarQuoteLandingPage', // 这个名字可以是任何你喜欢的
    component: SolarQuoteLandingPage // <--- 这里指向重定向组件
  },
  {
    path: '/avbathroom',
    name: 'avBathroom',
    component: avBathroom
  },
  {
    path: '/kitchen',
    name: 'Kitchen',
    component: KitchenProject
  },
  {
    path: '/window', 
    name: 'Window',
    component: WindowProject
  },
  {
    path: '/solar', 
    name: 'solar',
    component: solar
  },
  {
    path: '*', // 捕获所有未知路由
    name: 'NotFound',
    component: () => import(/* webpackChunkName: "not-found" */ '../components/404.vue')
  }
];

const router = new VueRouter({
  mode: 'history', // 或 'hash'
  routes
});

export default router;